
package com.google.android.daca.exceptions;

/**
 * Exception that is thrown if the received response code is invalid.
 * 
 * @author epetkov
 */
public class InvalidResponseCodeException extends Exception
{
    private static final long serialVersionUID = 14L;
    private int responseCode;
    
    public int getResponseCode()
    {
        return responseCode;
    }

    public void setResponseCode(int responseCode)
    {
        this.responseCode = responseCode;
    }

    public InvalidResponseCodeException(String message, int aResponseCode)
    {
        super(message + " : " + aResponseCode + ".");
        responseCode = aResponseCode;
    }
    
    public InvalidResponseCodeException(String message, int aResponseCode, Throwable cause)
    {
        super(message + " : " + aResponseCode + ".", cause);
        responseCode = aResponseCode;
    }
}
